package com.zj.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zj.model.RedPacketActivity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RedPacketMapper extends BaseMapper<RedPacketActivity> {
    //查询最新一条记录
    @Select("select * from red_packet_activity order by activityId desc limit 1;")
    RedPacketActivity getLatestRedPacketActivity();
}
